﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace B.S.BaseData.Infrastructure.Migrations
{
    public partial class 添加会议三表的审计字段 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "AddId",
                table: "MeetingRooms",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "AddName",
                table: "MeetingRooms",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<DateTime>(
                name: "AddTime",
                table: "MeetingRooms",
                type: "datetime2",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<int>(
                name: "DeleteId",
                table: "MeetingRooms",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DeleteName",
                table: "MeetingRooms",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "DeleteTime",
                table: "MeetingRooms",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsDelete",
                table: "MeetingRooms",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<int>(
                name: "UpdateId",
                table: "MeetingRooms",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "UpdateName",
                table: "MeetingRooms",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "UpdateTime",
                table: "MeetingRooms",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "AddId",
                table: "MeetingReservations",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "AddName",
                table: "MeetingReservations",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<DateTime>(
                name: "AddTime",
                table: "MeetingReservations",
                type: "datetime2",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<int>(
                name: "DeleteId",
                table: "MeetingReservations",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DeleteName",
                table: "MeetingReservations",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "DeleteTime",
                table: "MeetingReservations",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsDelete",
                table: "MeetingReservations",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<int>(
                name: "UpdateId",
                table: "MeetingReservations",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "UpdateName",
                table: "MeetingReservations",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "UpdateTime",
                table: "MeetingReservations",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "AddId",
                table: "MeetingParticipants",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "AddName",
                table: "MeetingParticipants",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<DateTime>(
                name: "AddTime",
                table: "MeetingParticipants",
                type: "datetime2",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<int>(
                name: "DeleteId",
                table: "MeetingParticipants",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DeleteName",
                table: "MeetingParticipants",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "DeleteTime",
                table: "MeetingParticipants",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsDelete",
                table: "MeetingParticipants",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<int>(
                name: "UpdateId",
                table: "MeetingParticipants",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "UpdateName",
                table: "MeetingParticipants",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "UpdateTime",
                table: "MeetingParticipants",
                type: "datetime2",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AddId",
                table: "MeetingRooms");

            migrationBuilder.DropColumn(
                name: "AddName",
                table: "MeetingRooms");

            migrationBuilder.DropColumn(
                name: "AddTime",
                table: "MeetingRooms");

            migrationBuilder.DropColumn(
                name: "DeleteId",
                table: "MeetingRooms");

            migrationBuilder.DropColumn(
                name: "DeleteName",
                table: "MeetingRooms");

            migrationBuilder.DropColumn(
                name: "DeleteTime",
                table: "MeetingRooms");

            migrationBuilder.DropColumn(
                name: "IsDelete",
                table: "MeetingRooms");

            migrationBuilder.DropColumn(
                name: "UpdateId",
                table: "MeetingRooms");

            migrationBuilder.DropColumn(
                name: "UpdateName",
                table: "MeetingRooms");

            migrationBuilder.DropColumn(
                name: "UpdateTime",
                table: "MeetingRooms");

            migrationBuilder.DropColumn(
                name: "AddId",
                table: "MeetingReservations");

            migrationBuilder.DropColumn(
                name: "AddName",
                table: "MeetingReservations");

            migrationBuilder.DropColumn(
                name: "AddTime",
                table: "MeetingReservations");

            migrationBuilder.DropColumn(
                name: "DeleteId",
                table: "MeetingReservations");

            migrationBuilder.DropColumn(
                name: "DeleteName",
                table: "MeetingReservations");

            migrationBuilder.DropColumn(
                name: "DeleteTime",
                table: "MeetingReservations");

            migrationBuilder.DropColumn(
                name: "IsDelete",
                table: "MeetingReservations");

            migrationBuilder.DropColumn(
                name: "UpdateId",
                table: "MeetingReservations");

            migrationBuilder.DropColumn(
                name: "UpdateName",
                table: "MeetingReservations");

            migrationBuilder.DropColumn(
                name: "UpdateTime",
                table: "MeetingReservations");

            migrationBuilder.DropColumn(
                name: "AddId",
                table: "MeetingParticipants");

            migrationBuilder.DropColumn(
                name: "AddName",
                table: "MeetingParticipants");

            migrationBuilder.DropColumn(
                name: "AddTime",
                table: "MeetingParticipants");

            migrationBuilder.DropColumn(
                name: "DeleteId",
                table: "MeetingParticipants");

            migrationBuilder.DropColumn(
                name: "DeleteName",
                table: "MeetingParticipants");

            migrationBuilder.DropColumn(
                name: "DeleteTime",
                table: "MeetingParticipants");

            migrationBuilder.DropColumn(
                name: "IsDelete",
                table: "MeetingParticipants");

            migrationBuilder.DropColumn(
                name: "UpdateId",
                table: "MeetingParticipants");

            migrationBuilder.DropColumn(
                name: "UpdateName",
                table: "MeetingParticipants");

            migrationBuilder.DropColumn(
                name: "UpdateTime",
                table: "MeetingParticipants");
        }
    }
}
